import QtQuick 1.0
//import ShellInvoker 1.0
import "../../../common/lib/kdeadmouseutils-build-desktop"

Item {
  
  property alias text : txt.text
  signal validate()
  height: 30
  width:  150
  focus:true
  Keys.onReturnPressed : {
      //console.log('bt pushed');
      event.accepted = true;
      validate();
  }
  
  Rectangle {
    anchors.fill : parent
    opacity : parent.activeFocus?0.8:0.4
    border.color : '#331f00'
    border.width :  parent.activeFocus?3:0
    radius : 4
    smooth:true
    gradient: Gradient {
	GradientStop { position: 0.0; color: "transparent" }
	GradientStop { position: 0.4; color:'#1f0033' }
	GradientStop { position: 0.6; color:'#1f0033' }
	GradientStop { position: 1; color: "transparent" }
    }      
  }
  
  Text {
      id:txt
      color:parent.activeFocus?'#FFFFFF' : '#000000'
      horizontalAlignment : Text.AlignHCenter
      verticalAlignment : Text.AlignVCenter
      anchors.fill : parent
      font.bold:true
      font.pointSize : 13
      text : 'pushME'
    }

}
     
     

